from pathlib import Path
import shutil
import random
Path('a/b/c/d').mkdir(parents = True,exist_ok = True)
st = [ chr(i) for i in range(97,122) ]
l1 = [i for i in Path('a').rglob('**/**')]
for i in range(50):
    Path(random.choice(l1) / ''.join(random.sample(st,4))).touch()
shutil.copytree(Path('a'),Path('dst'),ignore = lambda src,names:{name for name in names if name[0] not in {'x','y','z'} and (Path(src)/name).is_file()})


# 不错
